﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
           var T= MessageBox.Show("起飞","命令",MessageBoxButtons.YesNo,MessageBoxIcon.Information);
            if (T == DialogResult.Yes)
            {
                MessageBox.Show("哦吼，螺旋式升天","要上天了");
                this.Close();


            }
            else
            {
                Form2 form2 = new Form2();
          
                form2.Show();
                
            }
        }
    }
}
